package org.oos.atom.impl;

import java.util.List;

import org.oos.atom.OOSFeed;
import org.oos.atom.SiteFeed;
import org.oos.atom.entries.impl.SiteEntryImpl;

import com.google.api.client.util.Key;

/**
 * Implemtation of {@link OOSFeed} for search results extending
 * {@link AbstractFeedImpl}. It manages entries of type {@link SiteEntryImpl}
 * 
 * 
 * 
 * @see OOSFeed
 * @see OOSEntryO
 * 
 * @author pablo.gonzalez@11870.com
 * 
 */
public final class SiteFeedImpl extends AbstractFeedImpl<SiteEntryImpl>
		implements SiteFeed<SiteEntryImpl>, Cloneable {

	private static final long serialVersionUID = -7342735182757164494L;

	@Key("entry")
	private List<SiteEntryImpl> entries;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.oos.atom.OOSFeed#getEntries()
	 */
	@Override
	public List<SiteEntryImpl> getEntries() {
		return entries;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.oos.atom.feeds.AbstractFeedImpl#clone()
	 */
	@Override
	public SiteFeedImpl clone() throws CloneNotSupportedException {
		return (SiteFeedImpl) super.clone();
	}

}
